<?php
//把博客基本信息的修改提交到数据库去
session_start();
$BlogName=$_POST['BlogName'];
$BlogNote=$_POST['BlogNote'];
 function blogsetting($BlogName,$BlogNote)
{
require_once("conn.php");
    $sql="UPDATE  bloginfo SET BlogName='$BlogName', BlogNote='$BlogNote';";
    if(mysql_query($sql) ) 
    echo "<script>alert('修改成功!!'); window.location.href='blogsetting.php';</script>";   
}
blogsetting($BlogName,$BlogNote);


?>